<html>
<head><meta charset="utf-8"><title>rust-analyzer · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html">rust-analyzer</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="184227727"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/184227727" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Adeynack <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#184227727">(Dec 25 2019 at 18:56)</a>:</h4>
<p>I have been routed here from the <code>rust-analyzer</code> 's README ... but I find myself confused as of where specifically to ask a question about it. I am having difficulties compiling it (had none 3 weeks ago, but git-pull-ed today and it no longer compiles). Where would be the best channel/stream to ask about it ?</p>



<a name="184227740"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/184227740" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#184227740">(Dec 25 2019 at 18:57)</a>:</h4>
<p><a class="stream" data-stream-id="185405" href="/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0">#t-compiler/wg-rls-2.0</a> might be a good start</p>



<a name="184227838"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/184227838" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Adeynack <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#184227838">(Dec 25 2019 at 19:00)</a>:</h4>
<p>I assumed they were 2 different projects.</p>



<a name="184228079"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/184228079" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#184228079">(Dec 25 2019 at 19:09)</a>:</h4>
<p><span class="user-mention" data-user-id="255464">@Adeynack</span> not really, well, kind of</p>



<a name="184228081"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/184228081" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#184228081">(Dec 25 2019 at 19:09)</a>:</h4>
<p>rls-2.0 is an umbrella for the future of RLS</p>



<a name="184228082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/184228082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#184228082">(Dec 25 2019 at 19:09)</a>:</h4>
<p>right now rust-analyzer is a proving ground for the new technologies involved in that</p>



<a name="196740308"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196740308" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196740308">(May 07 2020 at 08:28)</a>:</h4>
<p>Hi. I'm new to Zulip. I got redirected here from <a href="https://github.com/rust-analyzer/rust-analyzer" title="https://github.com/rust-analyzer/rust-analyzer">https://github.com/rust-analyzer/rust-analyzer</a> . Can someone point me to the right "get rust-analyzer + vs code to work" channel?</p>
<p>I currently have<br>
  rustup 1.21.1<br>
  rustc: 1.43.0 stable<br>
  components rust-src, rust-analysis installed<br>
  vs code version 1.41.1</p>
<p>I have a rust/workspace with ~ 30k LOC rust that works okay (but sometimes laggy) in IntelliJ.</p>
<p>I'm trying to use this same work space in VS Code + RLS + Rust Analyer, but am getting error:</p>
<p>Error: ProtocolError("unexpected message during shutdown: Ok(Response(Response { id: RequestId(U64(1)), result: None, error: Some(ResponseError { code: -32603, message: \"Request window/workDoneProgress/create failed with message: Language client is not ready yet\"thread ', data: None }) }))")&lt;unnamed&gt;<br>
' panicked at 'called <code>Result::unwrap()</code> on an <code>Err</code> value: "SendError(..)"',</p>



<a name="196742077"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196742077" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196742077">(May 07 2020 at 08:46)</a>:</h4>
<p>The rust-analyzer channel is <a class="stream" data-stream-id="185405" href="/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0">#t-compiler/wg-rls-2.0</a>.</p>



<a name="196742116"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196742116" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196742116">(May 07 2020 at 08:46)</a>:</h4>
<p><span class="user-mention" data-user-id="299970">@zeroexcuses</span> ^</p>



<a name="196742198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196742198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196742198">(May 07 2020 at 08:47)</a>:</h4>
<p>First of all, I wouldn't use both RLS and rust-analyzer at the same time</p>



<a name="196743869"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196743869" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196743869">(May 07 2020 at 09:04)</a>:</h4>
<p><span class="user-mention" data-user-id="203546">@Laurențiu Nicola</span>  : I thought (incorrectly) that rust-analyzer depended on RLS. <span class="user-mention" data-user-id="133247">@bjorn3</span> : Thanks!</p>



<a name="196743915"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196743915" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196743915">(May 07 2020 at 09:05)</a>:</h4>
<p>And you should upgrade to a newer version of Code. rust-analyzer requires the latest one (1.44). Since you're on 1.41, the Code Marketplace sends you an older version of the extension.</p>



<a name="196744423"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196744423" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196744423">(May 07 2020 at 09:10)</a>:</h4>
<p><span class="user-mention" data-user-id="203546">@Laurențiu Nicola</span>  I'm running code-1.44.2 now. I _think_ this fixed it (atleast it's trying to index my workspace now). Is there some trivial action I can try to verify if indeed rust-analyzer is working inside of code ?</p>



<a name="196744584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196744584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196744584">(May 07 2020 at 09:12)</a>:</h4>
<p>Try typing something like <code>Vec::</code> inside a function. It should show multiple functions in the suggestion.</p>



<a name="196744664"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196744664" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196744664">(May 07 2020 at 09:13)</a>:</h4>
<p><a href="/user_uploads/4715/whrfo6P__7iXXm_QHetVbao0/image.png" title="image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/whrfo6P__7iXXm_QHetVbao0/image.png" title="image.png"><img src="/user_uploads/4715/whrfo6P__7iXXm_QHetVbao0/image.png"></a></div>



<a name="196744678"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196744678" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196744678">(May 07 2020 at 09:13)</a>:</h4>
<p>If I type in </p>
<div class="codehilite"><pre><span></span><code>let x = vec![20]
</code></pre></div>


<p>it fills in the type signature, then if type "x." it gives me auto completion -- this implies it's working? (only active plugins are neo-vim and rust-analyzer)</p>



<a name="196744753"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196744753" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196744753">(May 07 2020 at 09:14)</a>:</h4>
<p>Yes</p>



<a name="196745212"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196745212" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196745212">(May 07 2020 at 09:19)</a>:</h4>
<p>I'm using feature track_caller, which requires nightly. Is there a way to tell rust-analyzer/vscode to use the nightly tool chain rather than the stable tool chain ?</p>



<a name="196745592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196745592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196745592">(May 07 2020 at 09:23)</a>:</h4>
<p>stable/nightly issue resolved</p>



<a name="196746485"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196746485" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196746485">(May 07 2020 at 09:33)</a>:</h4>
<p><span class="user-mention silent" data-user-id="299970">zeroexcuses</span> <a href="#narrow/stream/122651-general/topic/rust-analyzer/near/196745592" title="#narrow/stream/122651-general/topic/rust-analyzer/near/196745592">said</a>:</p>
<blockquote>
<p>stable/nightly issue resolved</p>
</blockquote>
<p>care to share how for future readers having the same problem? :D</p>



<a name="196747036"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196747036" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196747036">(May 07 2020 at 09:38)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span>  : The problem is that I did</p>
<div class="codehilite"><pre><span></span><code>rustup toolchain install nightly
rustup toolchain uninstall stable
</code></pre></div>


<p>and I did not do a </p>
<div class="codehilite"><pre><span></span><code>rustup default nightly
</code></pre></div>


<p>After "rustup default nightly" and restarting vs code, it appears to be working</p>



<a name="196747079"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196747079" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196747079">(May 07 2020 at 09:39)</a>:</h4>
<p>You can also use <code>rustup override set nightly</code> to use nightly only for the current directory.</p>



<a name="196748105"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196748105" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196748105">(May 07 2020 at 09:49)</a>:</h4>
<p>I have more than one physical monitor. I'm also using xmonad to layout windows in particular places (like terminal / compile output immediately to the right of the editor).</p>
<p>In vs code, is it possible to pop out the terminal/compile-output window as a separate window? So far, it seems as if all of code is a single window.</p>



<a name="196748244"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196748244" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196748244">(May 07 2020 at 09:50)</a>:</h4>
<p>I don't think Code supports external windows, but you can run a separate terminal anyway. I never got used to the one built-in in Code.</p>



<a name="196748324"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196748324" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196748324">(May 07 2020 at 09:51)</a>:</h4>
<p>It's more that I want the unit tests / compile output on a separate vertical window, so that I can scan it, click on errors, and have the editor window jump to the right file / line number.</p>



<a name="196748450"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196748450" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196748450">(May 07 2020 at 09:52)</a>:</h4>
<p><a href="https://github.com/Microsoft/vscode/issues/10121" title="https://github.com/Microsoft/vscode/issues/10121">https://github.com/Microsoft/vscode/issues/10121</a></p>
<p>2900 upvotes and open for ~4 years</p>



<a name="196748476"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196748476" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196748476">(May 07 2020 at 09:53)</a>:</h4>
<p>It's the first one if you sort by <span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span></p>



<a name="196748850"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196748850" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196748850">(May 07 2020 at 09:57)</a>:</h4>
<p>I guess I could use xmonad to say: This is not two 3840x2160 monitors. This is one 7680x2160 monitor. Trust me.</p>



<a name="196749818"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196749818" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196749818">(May 07 2020 at 10:07)</a>:</h4>
<p>This kinda works. When you click "run test" in vs code, does it end up running _all tests_ in the workspace instead of just the test you click on?</p>



<a name="196749945"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196749945" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196749945">(May 07 2020 at 10:08)</a>:</h4>
<p>It appears to run all tests in all crates in the workspace that have the same name. (Instead of just the test in the current crate that has the same name).</p>



<a name="196750494"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196750494" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196750494">(May 07 2020 at 10:14)</a>:</h4>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/features.md" title="https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/features.md">https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/features.md</a> claims there are features for goto def and goto impl; how do I find the hot keys for these ?</p>



<a name="196750577"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196750577" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196750577">(May 07 2020 at 10:16)</a>:</h4>
<p>goto def is F12</p>



<a name="196750639"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196750639" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196750639">(May 07 2020 at 10:16)</a>:</h4>
<p>goto impl is ctrl + F12</p>



<a name="196750666"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196750666" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196750666">(May 07 2020 at 10:16)</a>:</h4>
<p>goto references is shift + F12</p>



<a name="196750721"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196750721" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196750721">(May 07 2020 at 10:17)</a>:</h4>
<p>Thanks, I see my problem now. According to xev , 'f12' right now is triggering  XF86Eject</p>



<a name="196750725"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196750725" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196750725">(May 07 2020 at 10:17)</a>:</h4>
<p><a href="/user_uploads/4715/XcqzW3rmzLSWNaBnMk8ahhPc/image.png" title="image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/XcqzW3rmzLSWNaBnMk8ahhPc/image.png" title="image.png"><img src="/user_uploads/4715/XcqzW3rmzLSWNaBnMk8ahhPc/image.png"></a></div>



<a name="196751444"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196751444" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196751444">(May 07 2020 at 10:26)</a>:</h4>
<p>Got that sorted out. F12 / goto def works now.</p>



<a name="196753486"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196753486" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196753486">(May 07 2020 at 10:47)</a>:</h4>
<p>You can also press F1 and type the command you're looking for</p>



<a name="196755710"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196755710" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196755710">(May 07 2020 at 11:12)</a>:</h4>
<p>Is there a way to "run last unit test" (and only last unit test). I see the command for "cargo test", but it runs all tests. I like to write a test then continuously run it / edit code / rerun test until it gets fixed.</p>



<a name="196755734"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196755734" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196755734">(May 07 2020 at 11:12)</a>:</h4>
<p>I don't want to re-run all tests every time, as that can be time expensive.</p>



<a name="196755949"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196755949" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196755949">(May 07 2020 at 11:14)</a>:</h4>
<p>If you have cargo-watch installed, you can do <code>cargo watch -s "cargo test -- test_name"</code>.</p>



<a name="196759840"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer/near/196759840" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> zeroexcuses <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.html#196759840">(May 07 2020 at 11:58)</a>:</h4>
<p>I have used cargo-watch before, but it's not quite what I want. In IntelliJ + Rust + vim plugin, I have bound &lt;esc&gt; ;rr = rerun last unit test</p>
<p>so it's edit -&gt; ;rr -&gt; click on compile error / runtime error -&gt; loop</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>